package com.iptv.grape.ui.frgmt.my;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.iptv.grape.R;
import com.iptv.grape.ui.BaseFrgmt;
import com.iptv.grape.ui.frgmt.my.impls.SystemInfo;
import com.iptv.grape.ui.frgmt.my.impls.SystemMgr;

/***
 * 账户信息
 */
public class AccountInfoFrgmt extends BaseFrgmt {
    @Override
    protected int layoutId() {
        return R.layout.frgmt_account_info;
    }

    @Override
    protected void initView(@NonNull View view, @Nullable Bundle savedInstanceState) {
        SystemInfo info= SystemMgr.build();
        TextView textView1 = view.findViewById(R.id.tvValue1);
        textView1.setText(info.getAccountInfo());
        TextView textView2 = view.findViewById(R.id.tvValue2);
        textView2.setText(info.getMac());
        TextView textView3 = view.findViewById(R.id.tvValue3);
        textView3.setText(info.getDevelopmentVersion());
    }
}
